package com.ly.autosignin.controller;


import com.ly.autosignin.entity.User;
import com.ly.autosignin.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 刘垚
 * @since 2020-08-11
 */
@RestController
@RequestMapping("//user")
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("register")
    public String register(User user){
        userService.save(user);
        return "注册成功";
    }
}
